package com.cn.springcloudwechat.model.articleAndMenu;

import org.joda.time.DateTime;

import java.io.Serializable;
import java.util.Date;

/**
*@program: YmArticle
*@author: Administrator
*@create: 2018-07-17 17:50
*/
public class YmArticle implements Serializable {
    private static final long serialVersionUID = 2877381276012276157L;
    /**
     * 文章id
     */
    private Long articleId;
    /**
     * 文章标题
     */
    private String articleTitle;
    /**
     * 热门文章
     */
    private Short hotArticles;
    /**
     *  精选文章
     */
    private Short featuredArticles;
    /**
     * 推荐文章
     */
    private Short recommendedArticles;
    /**
     *创建时间
     */
    private Date createTime;
    /**
     * 创建时间 yyyy-MM-dd
     */
    private String strCreateTime;
    /**
     *更新时间
     */
    private Date updateTime;
    /**
     * 更新时间 yyyy-MM-dd
     */
    private String strUpdateTime;
    /**
     * 挂载菜单id
     */
    private  Long menuTagId;

    /**
     *状态
     */
    private Short state;
    /**
     *文章内容
     */
    private String articleDatail;
    /**
     * 文章封面
     */
    private String articleCoverUlr;
    /**
     * 文章描述
     */
    private String articleDescribe;
    /**
     * 阅读量
     */
    private Long readNumber;
    /**
     * 点赞量
     */
    private Long praiseNumer;
    /**
     * 回复总数
     */
    private Long replyCount;
    /**
     * 菜单名
     */
    private String menuName;

    public String getMenuName() {
        return menuName;
    }

    public YmArticle setMenuName(String menuName) {
        this.menuName = menuName;
        return this;
    }

    public Long getReplyCount() {
        return replyCount;
    }

    public YmArticle setReplyCount(Long replyCount) {
        this.replyCount = replyCount;
        return this;
    }

    public Long getReadNumber() {
        return readNumber;
    }

    public YmArticle setReadNumber(Long readNumber) {
        this.readNumber = readNumber;
        return this;
    }

    public Long getPraiseNumer() {
        return praiseNumer;
    }

    public YmArticle setPraiseNumer(Long praiseNumer) {
        this.praiseNumer = praiseNumer;
        return this;
    }

    public String getArticleDescribe() {
        return articleDescribe;
    }

    public YmArticle setArticleDescribe(String articleDescribe) {
        this.articleDescribe = articleDescribe;
        return this;
    }

    public String getArticleCoverUlr() {
        return articleCoverUlr;
    }

    public YmArticle setArticleCoverUlr(String articleCoverUlr) {
        this.articleCoverUlr = articleCoverUlr;
        return this;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle == null ? null : articleTitle.trim();
    }
    public Short getHotArticles() {
        return hotArticles;
    }

    public void setHotArticles(Short hotArticles) {
        this.hotArticles = hotArticles;
    }

    public Short getFeaturedArticles() {
        return featuredArticles;
    }

    public void setFeaturedArticles(Short featuredArticles) {
        this.featuredArticles = featuredArticles;
    }

    public Short getRecommendedArticles() {
        return recommendedArticles;
    }

    public void setRecommendedArticles(Short recommendedArticles) {
        this.recommendedArticles = recommendedArticles;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.strCreateTime=new DateTime(createTime).toString("yyyy-MM-dd hh:mm:ss");
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.strUpdateTime=new DateTime(updateTime).toString("yyyy-MM-dd hh:mm:ss");
        this.updateTime = updateTime;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getArticleDatail() {
        return articleDatail;
    }

    public void setArticleDatail(String articleDatail) {
        this.articleDatail = articleDatail == null ? null : articleDatail.trim();
    }

    public String getStrCreateTime() {
        return strCreateTime;
    }

    public String getStrUpdateTime() {
        return strUpdateTime;
    }

    public Long getMenuTagId() {
        return menuTagId;
    }

    public YmArticle setMenuTagId(Long menuTagId) {
        this.menuTagId = menuTagId;
        return this;
    }

    @Override
    public String toString() {
        return "YmArticle{" +
                "articleId=" + articleId +
                ", articleTitle='" + articleTitle + '\'' +
                ", hotArticles=" + hotArticles +
                ", featuredArticles=" + featuredArticles +
                ", recommendedArticles=" + recommendedArticles +
                ", createTime=" + createTime +
                ", strCreateTime='" + strCreateTime + '\'' +
                ", updateTime=" + updateTime +
                ", strUpdateTime='" + strUpdateTime + '\'' +
                ", menuTagId=" + menuTagId +
                ", state=" + state +
                ", articleDatail='" + articleDatail + '\'' +
                '}';
    }
}